'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:IndexSubindexCtrl
 * @description
 * # IndexSubindexCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('IndexSubindexCtrl', function($scope, $location, localStorageService, Util) {
        $scope.sublist = localStorageService.get("sublist");
        $scope.menulist = $scope.sublist.subcategory
        $scope.gosection = function(path) {
            if (!path.viewName) {
                Util.Toast("移动端暂不支持该流程的发起，请您在电脑上完成该操作");
                return
            }
            localStorageService.set("iconUrl", path.iconUrl);
            $location.path(path.viewName + "/" + path.id)
        }
    });
